<template>
  <div class="my-header" :style="{backgroundColor:background,color}">{{ title }}</div>
</template>

<script>
export default {
    name:'MyHeader',
    props:{
        background:String,
        color:{
            type:String,
            default:"#fff"
        },
        title:{
            type:String,
            required:true
        }
    },
    data(){
        return {

        }
    }
}
</script>

<style scoped>
  .my-header {
    height: 45px;
    line-height: 45px;
    text-align: center;
    background-color: #448739;
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2;
  }
</style>